<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
   <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	 <!-- <meta name="viewport" content="width=1000,user-scalable=no;"> -->
    <title></title>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/swiper.css"/>
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/swiper.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/layer/layer.js"></script>
		<style type="text/css">
			#fixRight{
				position: fixed;
				right: -0.125rem;
				bottom: 10.25rem;
				border-radius: 0.1875rem;
				background-color: #df0504;
				width: 2rem;
				color: white;
				font-size: 0.75rem;
				text-align: center;
				padding: 0.625rem 0rem;
				z-index: 1000;
			}
			#fixRight img{
				width: 80%;
			}
		.topic-box .topic-head{
			border-left: 0.3125rem solid #007DDB;
			background-color: #ebebeb;
			padding: 0.25rem 0rem;
			margin: 0.3125rem 0rem;
			color: #007AFF;
			padding-left:0.625rem;
		}
		.major-box{
			display: flex;
			justify-content: space-around;
			flex-wrap: wrap;
			text-align: center;
			padding: 0.625rem;
			padding-bottom: 0.8rem;
		}
		.major-img{
			border-radius: 100%;
			width: 80%;
		}
		.major-box .item{
			width: 20%;
		}
		.youshi-box{
			padding-top: 0.625rem;
		}
		.youshi-box .item{
			display: flex;
			padding:0rem 0.625rem;
			align-items: center;
			margin-bottom: 0.625rem;
		}
		.youshi-box .item .num{
			float:left; width:11%; height:3rem; line-height:3rem; font-weight:700; text-align:center; color:#fff; border-top-left-radius:10px; border-bottom-left-radius:10px;
		}
		.youshi .item .first{
			background-color: #18B566;
		}
		.youshi .item .second{
			background-color: #1a93e4;
		}
		.youshi .item .third{
			background-color: #02d3be;
		}
		.youshi .item .describe{
			float:right; width:84.6%; height:3rem; line-height:3rem; padding-left:4%; font-weight:700; 
			 color:#666; border-right:1px solid #E5E5E5; 
			 border-top:1px solid #E5E5E5;
				border-bottom:1px solid #E5E5E5; 
				border-top-right-radius:10px; 
				border-bottom-right-radius:10px;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 1;
				overflow: hidden;
		}
		/* 师资力量 */
		#teacher .swiper-slide {
			text-align: center;
			font-size: 1.125rem;
			background: #83b8e5;
			padding-left: 0.325rem;
			/* width: 80%; */
			/* border-top-right-radius:5px;
			border-bottom-right-radius:5px; */
			/* Center slide text vertically */
			display: -webkit-box;
			display: -ms-flexbox;
			display: -webkit-flex;
			display: flex;
			-webkit-box-pack: center;
			-ms-flex-pack: center;
			-webkit-justify-content: center;
			justify-content: center;
			-webkit-box-align: center;
			-ms-flex-align: center;
			-webkit-align-items: center;
			align-items: center;
		}
		#teacher .swiper-slide:nth-child(n) {
			width: 80%;
		}
		#teacher .swiper-slide img{
			height: 9.375rem;
			width: 100%;
			max-width: 9.375rem;
		}
		#teacher .swiper-slide .right{
			float:right; width:28.125rem; 
			font-size: 0.875rem;
			padding-left:1.125rem; padding-right:1.25rem; 
			text-align:left; margin-top:-1.25rem; 
			color:#fff; line-height:2.1875rem;
		}
		.jiuye .stu-box{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-around;
		}
		.jiuye .stu-item{
			width: 28%;
			background-color: #01d3be;
			margin: 0.315rem 0rem;
		}
		.jiuye .stu-item img{
			max-width: 100%;
			height: 9.75rem;
		}
		.shipin .shipin-box{
			display: flex;
		}
		.shipin .shipin-box .shipin1{
			flex: 3;
			height: 12rem;
			align-items: flex-start;
			margin-right: 0.3125rem;
		}
		.shipin .shipin-box .shipin2{
			flex: 2;
		}
		.shipin .shipin-box .shipin2>div{
			margin-top: 0.3125rem;
		}
		.shipin .shipin1 video{
			width: 100%;
			height: 100%;
			object-fit: fill;	/*设置视频铺满父标签*/
		}
		/* 环境 */
		.huanjing .huanjing-item{
			padding: 0rem 0.625rem;
		}
			.huanjing .huanjing-item:nth-child(even) img:first-child{
				width: 65%;
				height: 7.5rem;
				margin-right: 0.625rem;
			}
			.huanjing .huanjing-item:nth-child(even) img:last-child{
				width: 30%;
				height: 7.5rem;
			}
			.huanjing .huanjing-item:nth-child(odd) img:first-child{
				width: 30%;
				height: 7.5rem;
				margin-right: 0.625rem;
			}
			.huanjing .huanjing-item:nth-child(odd) img:last-child{
				width: 65%;
				height: 7.5rem;
			}
			.hot-major .major-box{
				position: relative;
			}
			.hot-major .major-box .check-more{
				text-align: center;
				position: absolute;
				color: #0ab9f7;
				font-size: 0.875rem;
				bottom: -0.2rem;
			}
			.jieda .jieda-box{
				display: flex;
				flex-wrap: wrap;
				justify-content: center;
			}
			.jieda .jieda-item{
				position: relative;
				width: 48%;
				margin-right: 0.225rem;
				font-size: 0.75rem;
			}
			.jieda .jieda-item>div{
				position: absolute;
				left: 0.625rem;
				top: 0.0rem;
				line-height: 3rem;
			}
			.jieda .jieda-item>img{
				width: 100%;
			}
			.baoming img{
				width: 100%;
			}
			.baoming .baoming-wrapper{
				padding: 0.625rem;
				background-color: #FFa100;
			}
			.baoming .baoming-inner{
				background-color: white;
				padding: 0.625rem 0rem;
			}
			.baoming .baoming-inner>div{
				display: flex;
				justify-content: center;
				margin-bottom: 0.375rem;
			}.baoming .baoming-inner>div>div{
				margin-left: 0.625rem;
				flex: 3;
			}
			.baoming .baoming-inner .hint{
				text-align: right;
				flex:1;
			}
			#teacher .swiper-slide .right p{
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 1;
				overflow: hidden;
			}
			.mytext{
				line-height: 22px;
				font-size: 14px;
				color: #666;
			}
			.mybtn{
				display: inline-block;
				height: 38px;
				line-height: 38px;
				padding: 0 18px;
				background-color: #009688;
				color: #fff;
				white-space: nowrap;
				text-align: center;
				font-size: 14px;
				border: none;
				border-radius: 2px;
				cursor: pointer;
			}
		</style>
</head>
<body>
	<header>
		<div class="logo-box">
			<div class="logo-name"></div>
			<div class="slogan"></div>
		</div>
		<div class="logo-img">
			<img src="img/true.jpg" >
		</div>
	</header>

	<div class="navbar-box">
		<ul class="navbar">
			<li><a href="index.html" class="active">首页</a></li>
			<li><a href="jianjie.html">简介</a></li>
			<li><a href="major.html">专业</a></li>
			<li><a href="shizi.html">师资</a></li>
			<li><a href="huanjing.html">环境</a></li>
			<li><a href="jiuye.html">就业</a></li>
			<li><a href="xinwen.html">新闻</a></li>
			<li><a href="wenda.html">问答</a></li>
		</ul>
	</div>
	  <div class="swiper-container" id="lunbo">
	    <div class="swiper-wrapper">
	      <!-- <div class="swiper-slide"><img src="img/nature-1.jpg" ></div> -->
	    </div>
	    <!-- Add Arrows -->
	  <!--  <div class="swiper-button-next"></div>
	    <div class="swiper-button-prev"></div> -->
	  </div>
		<div class="topic-box hot-major">
			<div class="topic-head"></div>
			<div class="major-box">
			</div>
		</div>
		<div class="topic-box youshi">
			<div class="topic-head">学校优势</div>
			<div class="youshi-box">
				<!-- <div class="item">
					<div class="num first">01</div><div class="describe">可以有稳定的收入</div>
				</div>
				<div class="item">
					<div class="num second">02</div><div class="describe">可以有稳定的收入</div>
				</div>
				<div class="item">
					<div class="num third">03</div><div class="describe">可以有稳定的收入</div>
				</div>
				<div class="item">
					<div class="num first">04</div><div class="describe">可以有稳定的收入</div>
				</div>
				<div class="item">
					<div class="num second">05</div><div class="describe">可以有稳定的收入</div>
				</div>
				<div class="item">
					<div class="num third">06</div><div class="describe">可以有稳定的收入</div>
				</div> -->
			</div>
		</div>
		<div class="topic-box shizi">
			<div class="topic-head"></div>
			<div class="swiper-container" id="teacher">
			  <div class="swiper-wrapper">
<!-- 			    <div class="swiper-slide">
						<div><img src="http://m.cqzuxia.com/static/images/teacher2.png" ></div>
						<div class="right">
							<div>张老师</div>
							<div>
								<p>足下科教集团产品运营部总监 微软认证系统构架师 十多年IT项目管理经验 金融行业专家 擅长系统架构设计 精通多种操作系统</p>
							</div>
						</div>
					</div>
			    <div class="swiper-slide">
						<div><img src="http://m.cqzuxia.com/static/images/teacher3.png" ></div>
						<div class="right">
							<div>张老师</div>
							<div>
								<p>足下科教集团产品运营部总监 微软认证系统构架师 十多年IT项目管理经验 金融行业专家 擅长系统架构设计 精通多种操作系统</p>
							</div>
						</div>
					</div>
			    <div class="swiper-slide">
						<div><img src="http://m.cqzuxia.com/static/images/teacher4.png" ></div>
						<div class="right">
							<div>张老师</div>
							<div>
								<p>足下科教集团产品运营部总监 微软认证系统构架师 十多年IT项目管理经验 金融行业专家 擅长系统架构设计 精通多种操作系统</p>
							</div>
						</div>
					</div> -->
			  </div>
			</div>
		</div>
		<div class="topic-box jiuye">
			<div class="topic-head">学生就业</div>
				<div class="stu-box">
				</div>
		</div>
		<div class="topic-box jieda">
			<div class="topic-head"></div>
			<div class="jieda-box">
				<!-- <div class="jieda-item">
					<img src="http://m.cqzuxia.com/static/images/online2.png" alt="">
					<div>英语和数学不好能来学吗？</div>
				</div> -->
			</div>
		</div>
		<div class="topic-box huanjing">
			<div class="topic-head"></div>
			<!-- <div class="huanjing-item">
				<img src="http://m.cqzuxia.com/static/images/hj1.jpg" alt="">
				<img src="http://m.cqzuxia.com/static/images/hj2.jpg" alt="">
			</div> -->
		</div>
		<!-- <div class="topic-box shipin">
			<div class="topic-head">视频展示</div>
			<div class="shipin-box">
				<div class="shipin1">
					<video width="100%" height="100%" controls="controls">
						<source src="https://video.699pic.com/videos/93/62/02/b_Uc9dpeHc9DhE1592936202.mp4" type="video/mp4"></source>
						<object width="" height="" type="application/x-shockwave-flash" data="myvideo.swf">
							<param name="movie" value="myvideo.swf" />
							<param name="flashvars" value="autostart=true&amp;file=myvideo.swf" />
						</object>
						当前浏览器不支持 video直接播放，点击这里下载视频: <a href="https://video.699pic.com/videos/dt/02/yt/ui.mp4">下载视频</a>
					</video>
				</div>
				<div class="shipin2">
					<div class="">
						<video width="100%" height="" controls="controls">
							<source src="https://video.699pic.com/videos/dt/02/yt/ui.mp4" type="video/mp4"></source>
							<object width="" height="" type="application/x-shockwave-flash" data="myvideo.swf">
								<param name="movie" value="myvideo.swf" />
								<param name="flashvars" value="autostart=true&amp;file=myvideo.swf" />
							</object>
							当前浏览器不支持 video直接播放，点击这里下载视频: <a href="https://video.699pic.com/videos/dt/02/yt/ui.mp4">下载视频</a>
						</video>
					</div>
					<div class="">
						<video width="100%" height="" controls="controls">
							<source src="https://video.699pic.com/videos/dt/02/yt/ui.mp4" type="video/mp4"></source>
							<object width="" height="" type="application/x-shockwave-flash" data="myvideo.swf">
								<param name="movie" value="myvideo.swf" />
								<param name="flashvars" value="autostart=true&amp;file=myvideo.swf" />
							</object>
							当前浏览器不支持 video直接播放，点击这里下载视频: <a href="https://video.699pic.com/videos/dt/02/yt/ui.mp4">下载视频</a>
						</video>
					</div>
				</div>
			</div>
		</div> -->
		<div class="baoming">
			<img src="img/info.png" >
			<div class="baoming-wrapper">
				<div class="baoming-inner">
					<div>
						<div class="hint">姓名：</div>
						<div><input type="text" id="name"  class="mytext"></div>
					</div>
					<div>
						<div class="hint">学校：</div>
						<div><input type="text" id="school" class="mytext"></div>
					</div>
					<div>
						<div class="hint">电话号码：</div>
						<div><input type="text" id="tel" class="mytext"></div>
					</div>
					<div>
						<div class="hint">QQ：</div>
						<div><input type="text" id="qq" class="mytext"></div>
					</div>
					<div>
						<div class="hint">&nbsp;</div>
						<div>
							<button type="button" id="baomingbtn" class="mybtn" style="width: 11rem;background-color:#FFa100;">立即报名</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<footer>
			<div class="" style="padding: 0rem 0.625rem;">
				<div id="address"></div>
				<div><img src="" id="qrcode" ></div>
			</div>
			<div id="beian" style="text-align: center;font-size: 0.75rem;display: block;color: #ccc;"></div>
		</footer>
		<div id="fixRight" onclick="zixunOnline()">
			<img src="img/msg.png" >
			<div>在</div>
			<div>线</div>
			<div>咨</div>
			<div>询</div>
		</div>
		<!-- 底部导航 -->
		<div id="fixBottom">
			<ul>
				<li class="telzixun"><a href="tel:10000" id="tel"><img src="img/tel.png" ><div>电话咨询</div></a></li>
				<!-- <li class="baoming"><a href="tencent://message/?uin=1014167202&Site=在线QQ&Menu=yes"><img src="img/msg.png"><div>在线报名</div></a></li> -->
				<li class="baoming"><a href="leavemsg.html"><img src="img/msg.png"><div>在线报名</div></a></li>
				<li class="feezixun"><a href="chat.html"><img src="img/qq.png" ><div>报名咨询</div></a></li>
				<li class="feezixun"><a href="chat.html"><img src="img/fee.png" ><div>学费咨询</div></a></li>
				<!-- <li class="qqzixin"><a href="https://wpa1.qq.com/JEFqRGvh?_type=wpa&qidian=true"><img src="img/qq.png" ><div>QQ咨询</div></a></li>
				<li class="feezixun"><a href="http://wpa.qq.com/msgrd?v=3&uin=123456789&site=qq&menu=yes"><img src="img/fee.png" ><div>学费咨询</div></a></li> -->
			</ul>
		</div>
</body>
<script src="js/config.js" type="text/javascript" charset="utf-8"></script>
 <script>
		
		$(".baoming2").click(function(){
			location.href = 'leavemsg.html';
		})
		function showMajor (data) {
			$(".hot-major .topic-head").html(data.key);
			let n = data.value.length;
			let len = n>10 ? 10 : n;
			for(let i=0;i<len;i++){
				let s= `<div class="item">
								<img src="`+HOST+`/upload/`+data.value[i].content+`" class="major-img" alt="">
								<div class="title">`+data.value[i].title+`</div>
							</div>`;
				$(".hot-major .major-box").append(s);
			}
			if(n>10){
				$(".hot-major .major-box").append('<div class="check-more" data-show="1">︾更多</div>');
				for(let i=10;i<len;i++){
					let s = `<div class="item hide" style="display:none;">
									<img src="${HOST}/upload/${data.value[i].content}" class="major-img" alt="">
									<div class="title">${data.value[i].title}</div>
								</div>`;
					$(".hot-major .major-box").append(s);
				}
				$(".check-more").click(function(){
				 if($(this).attr("data-show")==1){
					 $(".hide").show();
					 $(this).html("︽ 收起");
					 $(this).attr("data-show",0)
				 }else{
					 $(".hide").hide();
					 $(this).html("︾更多");
					 $(this).attr("data-show",1)
				 }	
				})
			}

		}
		function showLiyou (data) {
					$(".youshi .topic-head").html(data.key);
					let arr = $(data.value[0].content);
					for(let i=0;i<arr.size();i++){
						let n= i+1;
						if(n<10)
							n="0"+n;
						let tmp = arr.get(i)
						let tmp2 = $(`<div class="describe"></div>`);
						tmp2.html(tmp);
						let num = $(`<div class="num first">${n}</div>`);
						let s = $(`<div class="item">
										</div>`);
										s.append(num)
										s.append(tmp2)
					$(".youshi .youshi-box").append(s);
					}
		}
		function showJiuye (data) {
			$(".jiuye .topic-head").html(data.key);
				for(let i=0;i<data.value.length;i++){
					let s = `<div class="stu-item">
					<img src="${HOST}/upload/${data.value[i].content}" alt="">
					<div class="xyim">
						<p style="font-size:20px; line-height:35px;">${data.value[i].title}</p>
						<p class="xycompany">${data.value[i].description}</p>
					</div>
				</div>`;
				$(".jiuye .stu-box").append(s);
			}
		}
		function showTeacher (data) {
			$(".shizi .topic-head").html(data.key);
			for (let i = 0; i < data.value.length; i++) {
				let s =`<div class="swiper-slide">
							<div><img src="${HOST}/upload/${data.value[i].content}" ></div>
							<div class="right">
								<div>${data.value[i].title}</div>
								<div>
									<p>${data.value[i].description}</p>
								</div>
							</div>
					</div>`;
				$("#teacher .swiper-wrapper").append(s);	
			}	
			new Swiper('#teacher', {
				// autoplay: true,//可选选项，自动滑动
				loop:true
			});
		}
		function showHuanjing (data) {
			$(".huanjing .topic-head").html(data.key);
			for (let i = 0; i < data.value.length; i+=2) {
				let s= `<div class="huanjing-item">
				<img src="${HOST}/upload/${data.value[i].content}" alt="">
				<img src="${HOST}/upload/${data.value[i+1].content}" alt="">
			</div>`;
				$(".huanjing").append(s)
			}
		}
		function showJieda (data) {
			$(".jieda .topic-head").html(data.key);
			for (let i = 0; i < data.value.length; i++) {
				let s = `<div class="jieda-item">
					<img src="http://m.cqzuxia.com/static/images/online2.png" alt="">
					<div>${data.value[i].title}</div>
				</div>`;
				$(".jieda .jieda-box").append(s);
			}
		}
		$.ajax({
			url:HOST+"/h5/content/getModuleContent?parentName=index",
			success:function(res){
				console.log(res);
				showMajor(res.data[0])
				showLiyou(res.data[1])
				showTeacher(res.data[2])
				showJiuye(res.data[3])
				showHuanjing(res.data[4])
				showJieda(res.data[5]);
			},
		})
		function zixunOnline () {
			location.href = 'chat.html';
		}
	getLunbo("index");
	
	// 读取网站配置信息
	$.ajax({
		url:`${HOST}/h5/config`,
		success:function(res){
			if(res.code==200){
				$(".logo-name").html(res.data[0].value);
				$(".slogan").html(res.data[1].value);
				if(res.data[4].value!=null)
					$(".logo-img img").attr("src",HOST+'/upload/'+res.data[4].value);
				$("#tel").attr('href','tel:'+res.data[1].value);
				$("#address").html(res.data[3].value);
				$("#qrcode").attr("src",res.data[5].value);
				$("#beian").html(res.data[6].value);
				if(res.data[0].value!=null)
					document.title = res.data[0].value;
				localStorage.setItem("logo-name",res.data[0].value)
				localStorage.setItem("slogan",res.data[1].value)
				localStorage.setItem("logo-img",HOST+'/upload/'+res.data[4].value)
				localStorage.setItem("address",res.data[3].value)
				localStorage.setItem("beian",res.data[6].value)
				localStorage.setItem("zuobiao",res.data[7].value)
				localStorage.setItem("scholl-qrcode",HOST+'/upload/'+res.data[5].value)
				
			}
		}
	})
	// 点击报名
	$("#baomingbtn").click(function(){
		let name = $("#name").val(),tel = $("#tel").val(),school = $("#school").val(),qq= $("#qq").val();
		if(name.length<1){
			layer.msg("请填写您的姓名");
			return;
		}
		if(tel.length<1){
			layer.msg("请填写您的手机号码");
			return;
		}
		let reg = /^1(3\d|4[5-8]|5[0-35-9]|6[567]|7[01345-8]|8\d|9[025-9])\d{8}$/;
		if(!reg.test(tel)){
			layer.msg("请填写正确的手机号");
			return;
		}
		var d = {"zxphone":tel,"zxname":name,"zxschool":school,"zxqq":qq,"zxmsg":"我要报名"};
		$.ajax({
			url:HOST+"/h5/zixunadd",
			type:"post",
			data:JSON.stringify(d),
			// data:{"zxname":name	},
			contentType: 'application/json',
			success: (res) => {
					console.log(res);
					if(res.code==200){
						layer.msg("提交成功，我们会尽快安排人联系您！")
						$("#name").val("");
						$("#tel").val("");
						$("#school").val("");
						 $("#qq").val("");
					}else{
						console.log("请求失败");
					}
			}
		})
	})
  </script>
</html>
